home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 4 / The Arsenal Files 4 (Arsenal Computer).ISO / casm / au116-as.exe / AU.CPP < prev    next >
C/C++ Source or Header  |  1994-12-13  |  2KB  |  97 lines

  1. // AU.CPP                                     1          1    6666
  2. // Dave Harris                                11         11   6
  3. // Compiled using Borland C++ ver 3.1       1 1        1 1   6666
  4. // 12-12-94                                  1     ..   1   6   6
  5. //                                           11111 .. 11111  666
  6. ////////////////////////////////////////////////////////////////////////
  7.  
  8. #include "au.hpp"
  9.  
  10. AU::AU(char *argv[], char *environment[], long mem)
  11. {
  12.     memStart       = mem;
  13.  
  14.     curVal           = NULL;
  15.     curOpt[0]       = '\0';
  16.  
  17.     sub_dirs       = 0;
  18.     current_color  = 7;
  19.  
  20.     debug           = FALSE;
  21.     dirs_only       = FALSE;
  22.     simulate       = FALSE;
  23.     show_execute   = FALSE;
  24.     no_extra       = FALSE;
  25.     no_disp_dirs   = FALSE;
  26.     quick_test       = FALSE;
  27.     allow_rename   = TRUE;
  28.     colorized       = (BOOLEAN)is_stdout();
  29.  
  30.     smart           = ON;
  31.     pause           = OFF;
  32.     date_retain    = ON;
  33.     self_extracts  = ON;
  34.     unarc_paths    = OFF;
  35.     retest           = ON;
  36.     recurse        = OFF;
  37.     delete_behind  = OFF;
  38.     warn_non_dos   = OFF;
  39.     warn_path       = OFF;
  40.     warn_hidden    = OFF;
  41.     warn_existing  = OFF;
  42.     answer_y       = OFF;
  43.     scan_self       = OFF;
  44.  
  45.     strcpy(cfg_file, "AU116.CFG");
  46.     cfg_line       = 0;
  47.  
  48.     def_file_spec  = NULL;
  49.  
  50.     getcwd(cur_directory, FLENGTH);  /* hold onto the current directory */
  51.     strcpy(last_dir, cur_directory);
  52.     source_directory[0] = '\0';
  53.     old_source_dir[0]    = '\0';
  54.     dest_directory[0]    = '\0';
  55.     old_dest_dir[0]     = '\0';
  56.  
  57.     argv0           = argv[0];
  58.  
  59.     output[0]       = '\0';
  60.     partial[0]       = '\0';
  61.     look_through[0]= '\0';
  62.  
  63.     wp_count = 0;
  64.  
  65.     number_processed = 0;
  66.     number_changed     = 0;
  67.  
  68.     memset(flist, '\0', sizeof(flist));
  69.     append_flist[0]  = '\0';
  70.     force_mode         = 0;
  71.     description[0]     = '\0';
  72.     desc_file[0]     = '\0';
  73.     flist_pos         = 0;
  74.  
  75.     flist_log[0]     = '\0';
  76.     problem_log[0]     = '\0';
  77.     action_log[0]     = '\0';
  78.  
  79.     memset(bad_count, 0, sizeof(bad_count));
  80.  
  81.     rename_to[0]     = '\0';
  82.  
  83.     memset(num_processed, 0, sizeof(num_processed));
  84.     y_file[0]         = '\0';
  85.  
  86.     scanner[0]         = '\0';
  87.     SC_Virus_EL      = -1;
  88.     SC_NoVirus_EL     = -1;
  89.     scannerMemNeeded = 0;
  90.  
  91.     env              = environment;
  92.     env_var[0]         = '\0';
  93.     env_cont[0]      = '\0';
  94.  
  95.     info             = NULL;
  96. }
  97.